<?php

if(!defined('PATH')) exit();

class Deaths extends Controller {

	protected $default_action = 'latest';

	public $_title = 'Latest Deaths';

	protected $_config = array(
		'limit' => null,
		);

	public function __construct() {
		parent::__construct();
		$this->_config['limit'] = $this->config['controller'][strtolower(get_class($this))]['limit'];
	}

	public function action_latest() {
		$view = new View('deaths/last');
		$view->limit = $this->_config['limit'];
		$view->tableName = $this->_title;
		$view->render();
	}
}
?>